@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
  background: #FDFDFD;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

#nprogress .bar {
  background: $MainColor !important;
}

// flex自定义
.my-flex {
  display: flex;
  flex-direction: row;
}

.my-flex-column {
  display: flex;
  flex-direction: column;
}

.flex-x-between {
  justify-content: space-between;

}
.flex-x-around {
  justify-content: space-around;
}

.flex-x-center {
  justify-content: center;
}

.flex-y-center {
  align-items: center;
}

.flex-y-top {
  align-items: flex-start;
}

.flex-y-end {
  align-items: flex-end;
}

.flex-x-end {
  justify-content: flex-end;
}

.column-x-center {
  align-items: center;
}

.column-y-center {
  justify-content: center;
}

.column-y-between {
  justify-content: space-between;
}

// 图标大小
.svg-size-first {
  // 24px
  width: $FirstSvg !important;
  height: $FirstSvg !important;
}

.svg-size-second {
  // 20px
  width: $FirstSvg !important;
  height: $FirstSvg !important;
}

.svg-size-third {
  // 18
  width: $SecondSvg !important;
  height: $SecondSvg !important;
}

.svg-size-fourth {
  // 16
  width: $FourthSvg !important;
  height: $FourthSvg !important;
}

.svg-size-fifth {
  // 14
  width: $FifthSvg !important;
  height: $FifthSvg !important;
}

.svg-size-sixth {
  // 12
  width: $SixthSvg !important;
  height: $SixthSvg !important;
}

.table-pagination {
  margin-top: $FirstSpacing;
  text-align: right;
}


// 弹出层
.my-dialog-content {
  height: 70vh;
  overflow-y: scroll;
}

.my-dialog-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/*滚动条的轨道*/
.my-dialog-content::-webkit-scrollbar-track {
  background-color: transparent;
}

/*滚动条的滑块按钮*/
.my-dialog-content::-webkit-scrollbar-thumb {
  width: 8px;
  height: 238px;
  background: #47499b;
  border-radius: 5px;
}

/*滚动条的上下两端的按钮*/
.my-dialog-content::-webkit-scrollbar-button {
  height: 0;
}